xen/arm: Drop reference on foreign page when guest_physmap_add_entry has failed
authorJulien Grall <julien.grall@linaro.org>
Tue, 1 Jul 2014 15:16:55 +0000 (16:16 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 3 Jul 2014 10:13:03 +0000 (11:13 +0100)
commitcc184e82a2522ef188abffc779dd1cd009fa9cc1
treed2db1d0af4d12279c6f3f87a74dabd4039c793fd
parentd1b93ea2615bd789ee28901f1f1c05ffb319cb61
xen/arm: Drop reference on foreign page when guest_physmap_add_entry has failed

When a foreign page is added to the guest p2m, we take a reference on this page.
Currently if the mapping has failed when a leak a reference, this will result
to the guest will foreign guest will became a zombie as soon as it's destroyed.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c